package com.ch04.ex49;

import java.util.Random;

/**
 * Created by zc on 2016/2/19.
 */
public class ArrayGenerator {

    public int[] generateArray(int size){
        int array[] = new int[size];
        Random random = new Random();
        for(int i=0; i<size; i++){
            array[i] = random.nextInt(10);
        }
        return array;
    }
}
